﻿/*
 * Autore: Artur Tolstenco
 */

using System.Windows.Controls;

namespace RecipesManager.MainControls.RecipeSubControls
{
    /// <summary>
    /// Interaction logic for SubRecipeStepSubControl.xaml
    /// </summary>
    public partial class SubRecipeStepSubControl
    {
        public SubRecipeStepSubControl()
        {
            InitializeComponent();
            var max = Data.Properties.Settings.Default.MaxServings;
            var min = Data.Properties.Settings.Default.MinServings;
            var step = Data.Properties.Settings.Default.StepServings;

            for (var i = min; i <= max; i += step)
                cb_servings.Items.Add(i);
        }
    }
}
